
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/mycss/test.css" type="text/css" rel="stylesheet"  media="screen" />
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />

<link rel="stylesheet" href="css/mycss/my.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="./js/jquery-1.5.1.min.js"></script>
<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />
<script type="text/javascript">
$(document).ready(function(){
	intisplb();
});
//初始化商品类别选项
function intisplb(){
	var iFlaglb="${iFlaglb}";
	var splbfid="${splbfid}";//商品类别fid
	if(iFlaglb==0){
		$("#afteronclick").hide();
	}else{
		$("#afteronclick").show();
	}
	
	if(splbfid.trim()!=""){
		$("#splbf_select_"+splbfid).attr("selected","selected");
	}
		
}
//单击商品大类别之后跳转
function clickSplbf(splbfid){
	window.location=encodeURI("../admin/loadSpxxgl.action?splbfid="+splbfid);
}


</script>


<title>无标题文档</title>
</head>

<body>

  <div id="main-content">
    <!-- Main Content Section with everything -->
    <noscript>
    <!-- Show a notification if the user has disabled javascript -->
    </noscript>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>商品信息添加</h3>
        <ul class="content-box-tabs">
          <li></li>
          <!-- href must be unique and match the id of target div -->
          <li></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
		<div class="tab-content default-tab" id="tab1" style="display:block;">
          <form action="saveSpxxgl.action" method="post">
          <div id="linshi"><!-- 这里是类别选择begin -->
          <p>
          
            <label>商品大类别</label>
          <select  class="small-input" name="spxxBean.splbfid" >
          		<option value="0">请选择</option>
          		  <@s.iterator id="splbf" value="listSplbf">	
              		  <option id="splbf_select_<@s.property value='#splbf.splbfid'/>" value="<@s.property value='#splbf.splbfid'/>"  onclick="clickSplbf(<@s.property value='#splbf.splbfid'/>)"/><@s.property value='#splbf.splbm'/></option>
                  </@s.iterator>
          </select>
          </p>
          
          <div id="afteronclick">
          <p>
            <label>商品品牌</label>
          <select class="small-input" name="spxxBean.ppid" >
           <option value="0">请选择</option>
          <@s.iterator id="sppp" value="mapSplbs.lstSppp">	
                <option value="<@s.property value='#sppp.spppid'/>"><@s.property value='#sppp.spppm'/></option>
          </@s.iterator>    
          </select>
          </p>         
		  <p>
            <label>商品功能</label>
              <select class="small-input" name="spxxBean.splbsid">
                <option value="0">请选择</option>
                 <@s.iterator id="splbs" value="mapSplbs.lstSplbs">	
              	  <option value="<@s.property value='#splbs.splbsid'/>"><@s.property value='#splbs.splbm'/></option>
          		</@s.iterator>  
          </select>
          </p>
          <p>
          <label>价格区间</label>
              <select class="small-input" name="spxxBean.jgqjid">
                <option value="0">请选择</option>
         	  	<@s.iterator id="jgqj" value="mapSplbs.lstJgqj">	
                <option value="<@s.property value='#jgqj.jgqjid'/>"><@s.property value='#jgqj.jgqjnr'/></option>
        	  </@s.iterator>  
          </select>
          </p>
          </div>
          </div><!-- 这里是类别选择end -->
          
          
          
          
            <fieldset>
            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
            <p>
              <label>商品货号</label>
              <input class="text-input small-input" type="text" id="small-input" name="spxxBean.sphh" />
              <br />
            </p>
            <p>
              <label>商品进货价格</label>
              <input class="text-input spsj-input" type="text" id="small-input" name="spxxBean.jhjg" /><span>元</span>
              <br />
            </p>
            <p>
              <label>商品市场价格</label>
              <input class="text-input spsj-input" type="text" id="small-input" name="spxxBean.spyj" /><span>元</span>
              <br />
            </p>
              <p>
              <label>商品销售价格</label>
              <input class="text-input spsj-input" type="text" id="small-input" name="spxxBean.spsj" />
              <span>元</span>
              <br />
            </p>
            <p>
              <label>商品标题</label>
              <input class="text-input medium-input datepicker" type="text" id="medium-input" name="spxxBean.spbt" />
            </p>
             <p>
              <label>商品展示图片根目录</label>
              <input class="text-input spsj-input" type="text" id="small-input" name="spxxBean.sptpUrl" />
              <br />
            </p>
            <p>
              <label>商品展示图片数</label>
            <select class="small-input" name="spxxBean.spzstpNum" >
          		<option value="0">请选择</option>
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
         	</select>
            </p>
              <p>
              <label>商品描述图片数(请填写正确)</label>
              <input class="text-input spsj-input" type="text" id="small-input" name="spxxBean.spmstpNum" />
              <span>张</span>
              <br />
            </p>
              <input class="button" type="submit" value="Submit" />
            </p>
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box --><!-- Start Notifications --><!-- End Notifications -->
<div id="footer"> <small>
      &#169; Copyright 2011 Your Company | Powered by <a href="#">kimxc11@gmail.com</a> | <a href="#">Top</a> </small> </div>
  <!-- End #footer -->
  
  
    <div id="messages" style="display: none">
          <form id="saveXxFrom" action="saveXx.action" method="post">
        
          <fieldset style="margin-top:20px;" >
          <label class="search_lable">菜单名</label>
         <input class="search_myself" name="xxBean.xxm" type="text"/>
          </fieldset>
          <fieldset style="margin-top:20px;">
          <label class="search_lable" >排&nbsp;&nbsp;&nbsp;序</label>
          <input class="search_myself" name="xxBean.px" type="text"/>
          </fieldset>
          <fieldset style="margin-top:20px;">
          <label class="search_lable" >actionURL</label>
          <input class="search_myself" name="xxBean.xxurl" type="text"/>
          </fieldset>
           <fieldset style="margin-top:20px;">
          <input class="button" type="submit" value="保存" />
          </fieldset>
        </form>
      </div>
    

 
</div>

</body>
</html>
